package com.xmy.api.feign;

import com.xmy.entity.Result;
import com.xmy.pojo.ShopUser;
import com.xmy.pojo.ShopUserMoneyLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

@Component
@FeignClient("dubbo-user-provider")
public interface IUserFeignService {

    @GetMapping("/user/{id}")
    ShopUser findOne(@PathVariable("id")Long id);

    @GetMapping("/user/updateMoneyPaid}")
    Result updateMoneyPaid(@RequestBody ShopUserMoneyLog userMoneyLog);
}
